<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  {{message}}
<!--  v-html会将String类型的html取出并进行渲染-->
  <h2 v-html="url"></h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const vm=new Vue({
    el:'#app',
    data:{
      message:'你好啊!',
      url:'<a href="https://www.baidu.com/">百度一下</a>'
    }
  })
</script>

</body>
</html>